package cn.jetpiece.cloud.joss.api.accossor.model.result;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 授权
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@Data
@ApiModel
public class AccessorResult implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * UUID
     */
    @ApiModelProperty(value = "UUID")
    private String id;

    /**
     * 系统名称
     */
    @ApiModelProperty(value = "系统名称")
    private String accessorName;

    /**
     * 默认桶名称
     */
    @ApiModelProperty(value = "默认桶名称")
    private String defaultBucketName;

    /**
     * 默认对象前缀路径
     */
    @ApiModelProperty(value = "默认对象前缀路径", example = "/HCC/Range/")
    private String defaultObjectPrefixPath;

    /**
     * 公钥
     */
    @ApiModelProperty(value = "公钥")
    private String accessKey;

    /**
     * 密钥
     */
    @ApiModelProperty(value = "密钥")
    private String secretKey;

    /**
     * 请求有效时间
     */
    @ApiModelProperty(value = "请求有效时间,毫秒")
    private Long requestValidTime;

    /**
     * 启用(1:是,0:否)
     */
    @ApiModelProperty(value = "启用(1:是,0:否)")
    private Integer isEnable;

    /**
     * 删除(1:是,0:否)
     */
    @ApiModelProperty(hidden = true)
    private Integer isDel;

    /**
     * 新增时间
     */
    @ApiModelProperty(hidden = true)
    private Date createTime;

    /**
     * 新增人
     */
    @ApiModelProperty(hidden = true)
    private Long createUser;

    /**
     * 更新时间
     */
    @ApiModelProperty(hidden = true)
    private Date updateTime;

    /**
     * 更新人
     */
    @ApiModelProperty(hidden = true)
    private Long updateUser;
}
